import React from 'react'
export default class MyComp3 extends React.Component {
  props: any
  constructor(props: any) {
    super(props)
  }
  componentDidMount () {
    console.log('MyComp3 挂载完成')
  }
  componentWillUnmount() {
    console.log('MyComp3 将要卸载')
  }
  shouldComponentUpdate() {
    console.log('MyComp3 将要更新')
    return true
  }
  componentDidUpdate() {
    console.log('MyComp3 更新完成')
    return true
  }
  render() {
    return <h1>MyComp3 {this.props.title}</h1>
  }
}